<?php
include('JsonExcel.class.php');

$jw = new JsonWriter();
$jw->create(iconv('utf-8', 'gbk', '中文测试2.json'));
$jw->addSheet('测试test', array(array('field' => 'field', 'name' => '测试test', 'edit' => true, 'example' => '', 'description' => '测试\n'**20)), array('说明'));
$jw->addRow(array('field' => '测试内容'));
$jw->addRow(array('field' => '测试内容'));
$jw->addRow(array('field' => '测试内容'));
$path = $jw->convert();
var_dump($path);
// 读取
$jr = new JsonReader();
$jr->read($path);
while($row = $jr->nextRow()){
    var_dump($row);
}
$jr->close();
?>